package com.zb.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zb.Service.RoleService;
import com.zb.entity.Role;


@Scope("prototype")
@Component
@RequestMapping("/role")
public class RoleController {
	
	@Resource
	private RoleService roleService;
	
	@RequestMapping(params = "op=showrole")
	@ResponseBody
	public List<Role> deleteclien(Integer id) {		
		return roleService.findRole();
	}
}
